/*
revision 1:
The idea is to get a valid id by using the imgs. But in this case it will simply get the images url. The file name.jpg is the id of course (withour .jpg)
so it could be taken using regular expressions. After getting the id we could maybe work anyway we wanted with those ids.
}*/

function c_memberlist(){
var f1 = document.getElementsByTagName("img");
var f2;
for(i=10;i<f1.length;i++){
f2=f1[i].src;alert(f2);
}

/*
Could evolve to something like below: (note, nothing below will work atm. need to work on it)

function c_memberlist(){
var f1 = document.getElementsByTagName("img");
var f2;
var str = "";
var str2 = "";
var patt1 = new RegExp(".jpg", "g");
var patt2 = new RegExp("/","g");
var len1 = str.length;
var len2 = str2.length;
var result1 = "";
for(i=10;i<f1.length;i++){
f2=f1[i].src;
str=f2;
patt1 = new RegExp(".jpg", "g");
patt2 = new RegExp("/","g");
patt1.test(str)
result1=RegExp.leftContext;
for(j = 0; j < 6; j++) 
{
patt2.test(str)
if(j==5)
{
str2=RegExp.leftContext;
alert(result1.slice(len1-(len1-(str2.length+1)),len1));
}
}
}
}


function c_memberlist(){
var str = "http://img1.orkut.com/images/small/9999999999/999999999.jpg"; //this should be an example url not sure if it exists. it is for testing only.
var str2 = "";
var patt1 = new RegExp(".jpg", "g");
var patt2 = new RegExp("/","g");
var len1 = str.length;
var len2 = str2.length;
patt1.test(str)
var result1=RegExp.leftContext;
document.write(RegExp.leftContext);
for(i = 0; i < 6; i++) 
{
patt2.test(str)
if(i==5)
{
str2=RegExp.leftContext;
document.write(result1.slice(len1-(len1-(str2.length+1)),len1));
}
}
}
c_memberlist();
*/
